{template header.html}

<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		{$menu}
	</div>
	<div class="bk10"></div>
	<div class="table-list">
		<form action="" method="post" name="myform" id="myform">
		<table width="100%">
		<thead>
		<tr>
            <th idth="20" align="right"><input name="dr_select" id="dr_select" type="checkbox" onClick="dr_selected()" />&nbsp;</th>
            <th class="{ns_sorting('id')}" name="id" width="50" align="left">Id</th>
            <th class="{ns_sorting('name')}" name="name" width="200" align="left">{lang('html-026')}</th>
			<th class="{ns_sorting('clicks')}" name="clicks" width="80" align="center">{lang('html-324')}</th>
			<th class="{ns_sorting('endtime')}" name="endtime" width="90" align="center">{lang('html-409')}</th>
			<th class="{ns_sorting('username')}" name="username" width="100" align="left">{lang('082')}</th>
			<th class="{ns_sorting('inputtime')}" name="inputtime" width="120" align="left">{lang('html-563')}</th>
			<th class="{ns_sorting('status')}" name="status" width="70" align="center">{lang('html-322')}</th>
			<th align="left" class="dr_option">{lang('option')}</th>
		</tr>
		</thead>
		<tbody>
		{loop $list $t}
		<tr>
            <td align="right"><input name="ids[]" type="checkbox" class="dr_select" value="{$t['id']}" />&nbsp;</td>
            <td align="left">{$t.id}</td>
            <td align="left">{$t.name}</td>
			<td align="center">{$t.clicks}</td>
			<td align="center">{if $t.endtime}{dr_date($t.endtime, 'Y-m-d')}{else}{lang('m-265')}{/if}</td>
            <td align="left"><a href="javascript:;" onclick="dr_dialog_member('{$t.uid}')">{dr_strcut($t.username, 10)}</a></td>
            <td align="left">{dr_date($t.inputtime, NULL, 'red')}</td>
			<td align="center">{if $t.status}<font color=green>{lang('html-626')}</font>{else}{lang('close')}{/if}</td>
			<td align="left" class="dr_option">
                {if $this->ci->is_auth('admin/poster2/edit')}<a class="aedit" href="{dr_url('poster2/edit', array('id'=>$t.id, 'sid'=>$sid))}">{lang('edit')}</a>{/if}

            </td>
		</tr>
		{/loop}
        <tr>
            <th width="20" align="right"><input name="dr_select" id="dr_select" type="checkbox" onClick="dr_selected()" />&nbsp;</th>
            <td colspan="8" align="left" style="border:none">
                {if $this->ci->is_auth('admin/poster2/del')}<input type="button" class="button" value="{lang('del')}" name="option" onClick="dr_confirm_set_all('{lang('015')}')" />{/if}
            </td>
        </tr>
		</tbody>
		</table>
		</form>
        <div id="pages"><a>{dr_lang('html-346', $total)}</a>{$pages}</div>
	</div>
</div>
{template footer.html}